﻿@model IEnumerable<FI.Security.SitemapModel>

@section Styles{

    <style>
        input[type=text] {
            width: 70px;
        }
    </style>



}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            All Menus
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">All Menus</a></li>
            <li class="active"></li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <table class="table" id="menus">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.SitemapID)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.SitemapType)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.SitemapTitle)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.SitemapDesc)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.URL)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.SitemapParent)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.OrderBy)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.ShowInMenu)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.ClassStyle)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.ImageURL)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Parameter)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Value)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Area)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Controller)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Action)
                        </th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>
                                @Html.TextBoxFor(modelItem => item.SitemapID)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.SitemapType)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.SitemapTitle)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.SitemapDesc)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.URL)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.SitemapParent)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.OrderBy)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.ShowInMenu)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.ClassStyle)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.ImageURL)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.Parameter)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.Value)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.Area)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.Controller)
                            </td>
                            <td>
                                @Html.TextBoxFor(modelItem => item.Action)
                            </td>
                            <td>
                                @Html.ActionLink("Insert", "Import", "Sitemap" ,new {
                               SitemapID =item.SitemapID,
                               SitemapType=item.SitemapType,
                               SitemapTitle=item.SitemapTitle,
                               SitemapDesc=item.SitemapDesc,
                               URL=item.URL,
                               SitemapParent= item.SitemapParent,
                               OrderBy= item.OrderBy,
                               ShowInMenu= item.ShowInMenu,
                               ClassStyle= item.ClassStyle,
                               ImageURL= item.ImageURL,
                               Parameter= item.Parameter,
                               Value= item.Value,
                               Area= item.Area,
                               Controller= item.Controller,
                               Action= item.Action
                           },null)

                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>

    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->




@section Scripts
{


    <script type="text/javascript">
        $(document).ready(function () {

            $("#menus").DataTable({
                'paging': false,
                'lengthChange': false,
                'searching': false,
                'ordering': false,
                'info': true,
                'autoWidth': false
            })
        })
    </script>

}